<?php
/**
 * Created by PhpStorm.
 * User: Aliaksei Lazerka
 * Date: 10/23/14
 * Time: 10:59 PM
 */

include_once("functions/db_manipulate.php");

switch ($_GET['act']) {
  case "edit":
    editListSub($_POST['listSub'], $_POST['newSubTitle']);
    break;
  case "del":
    deleteListSub($_POST['listSub']);
    break;
}

header("Location: " . $_SERVER['HTTP_REFERER']);